;let tools = (function(){
    function toNumber(str){
        return Number(str.replace(/\s+/, '')) || 0;
    }
    function getTarget(ev){
        ev = ev || window.event;
        return ev.target || ev.srcElement;
    }
    return {
        toNumber:toNumber,
        getTarget:getTarget
    }
})()